﻿#-------------------------------------------------------------------------------
# Name:        ScreenGrabber
# Purpose:
#
# Author:      evob0413
#
# Created:     10.07.2014
# Copyright:   (c) evob0413 2014
# Licence:     <your licence>
#-------------------------------------------------------------------------------
from PIL import ImageGrab
from PIL import Image
from InformationGatheringConstants import *

# 1. Сделать скриншот
# 2. Сохранить в файл

class ScreenGrabber(object):

    def grab_image(self):
        im = ImageGrab.grab()
        im.save(SCREEN_FILE_NAME, SCREEN_FILE_FORMAT)


def main():
    screen_grabber = ScreenGrabber()
    screen_grabber.grab_image()

if __name__ == '__main__':
    main()
